package rmi;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.LinkedHashMap;

import javax.swing.ImageIcon;



public interface Session extends Remote{
	public boolean logout() throws RemoteException;
	public String getMSTS() throws RemoteException;
	public String getStudentFirstName() throws RemoteException;
	public String getStudentLastName() throws RemoteException;
	public String getCMND() throws RemoteException;
	public String getDateOfBirth() throws RemoteException;
	public String getCourseTitle() throws RemoteException;
	public String getExamTitle() throws RemoteException;
	public String getRoom() throws RemoteException;
	public ArrayList<Question> getQuestions() throws RemoteException;
	public long getRemainTime() throws RemoteException;
	public boolean answerAQuestion(int answerID) throws RemoteException;
	public void requestMarking() throws RemoteException, SQLException;
	public double getMark() throws RemoteException,SQLException;
	public boolean canDoExam() throws RemoteException;
	public int getAnsweredAnswer(int id) throws RemoteException;
	public LinkedHashMap<Integer, String> getRandomList() throws RemoteException,SQLException;
	public LinkedHashMap<Integer, Question> getRandomQuestion(int list) throws RemoteException,SQLException;
	public ImageIcon getImage(int qid) throws RemoteException;
}
